package com.linx.notice.domain.bo;

import com.linx.notice.domain.InfoRealeaseFile;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 信息发布业务对象 info_realease_file
 *
 * @author 泽智科技
 * @date 2024-10-21
 */
@Data
@AutoMapper(target = InfoRealeaseFile.class, reverseConvertGenerate = false)
public class InfoRealeaseFileBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long infoRealeaseFileId;

    /**
     * 信息id
     */
    @NotNull(message = "信息id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long infoRealeaseId;

    /**
     * 附件地址
     */
    @NotBlank(message = "附件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileUrl;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
